
import React from "react";
import { BrowserRouter, Routes, Route } from "react-router-dom"; //路由
import Personal from "../views/Personal/Personal"; //个人中心
import MyBook from "../views/Personal/MyBook"; //我的追书
import BookRelease from "../views/BookRelease"; //发布小说组件
import Welfare from "../views/welfare/index.jsx"; //福利
import Chapter from "../views/chapterDetails/bookchapter.jsx"; //章节详情
import DirectoryPage from "../views/directoryPage/index.jsx"; //目录页面
import Xiangqing from "../views/xiangqing"; //小说详情页
import Shouye from "../views/shouye"; //首页组件
import Test from "../views/test"; //测试ant组件
import Updata from "../views/updata"; //更新章节
import Login from "../views/login/index.jsx"; //登录
import Works from "../views/works"


export default function Router() {
  return (
    <BrowserRouter>
      <Routes>


        <Route path='/' element={<Shouye />}></Route>
        <Route path='/test' element={<Test />}></Route>
        <Route path='/personal' element={<Personal />}>{/* 个人中心地址 */}</Route>
        <Route path='/myBook' element={<MyBook />}>{/* 我的追书 */}</Route>




         <Route path='/' element={<Shouye/>}></Route>
        {/* 作品页面 */}
        <Route path='/works' element={<Works />}></Route>



        {/* 登录 */}
        <Route path="/login" element={<Login />}></Route>
        <Route path="/test" element={<Test />}></Route>
        {/* 个人中心地址 */}
        <Route path="/personal" element={<Personal />}></Route>
        {/* 我的追书 */}
        <Route path="/myBook" element={<MyBook />}></Route>
        {/* 小说发布 */}
        <Route path="/bookRelease" element={<BookRelease />}></Route>
        {/* 更新章节 */}
        <Route path="/updata" element={<Updata />}></Route>

        {/* 福利页面 */}
        <Route path="/welfare/*" element={<Welfare />}></Route>
        {/* 章节详情页面 */}
        <Route path="/chapter/:bookID/:zhangjie" element={<Chapter />}></Route>
        {/* 目录页面 */}
        <Route path="/directorypage/:bookID" element={<DirectoryPage />}></Route>
        {/* 详情页面 */}
        <Route path="/xiangqing/:bookID" element={<Xiangqing />}></Route>

      </Routes>
    </BrowserRouter>
  );
}
